<script setup>
import {forData} from './utils/interceptor';
	import { onLaunch } from '@dcloudio/uni-app'

// App.vue 或页面组件
import { onMounted, onUnmounted } from 'vue';

onMounted(() => {
  window.addEventListener('hashchange', handleHashChange);
});

onUnmounted(() => {
  window.removeEventListener('hashchange', handleHashChange);
});

const handleHashChange = () => {
  // const currentPath = window.location.hash.substring(1); // 提取 # 后的路径
  forData()
};




	onLaunch(()=>{
    // const currentPage = getCurrentPages()[0]?.route || '';

		console.log('App Launch')
	})
	
</script>


<style lang="scss">

	page{
		background-color: #f6f6f6;
	}

	@import './static/common.css';
	@import "uview-plus/index.scss";

</style>
